<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: ADC multi-channels sample example</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="PageDoc"><div class="header">
  <div class="headertitle">
<div class="title">ADC multi-channels sample example </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><pre class="fragment">  ****************** (C) COPYRIGHT 2023 Westberry Technology *******************
  * @file    ADC/ADC_MultiChannels/readme.txt 
  * @author  Westberry Application Team
  * @version V0.0.3
  * @date    12-April-2023
  * @brief   Description of the ADC ADC_MultiChannels example.
  ******************************************************************************
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, WESTBERRY SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
  * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM
  * THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  ******************************************************************************</pre><dl class="section user"><dt>例程描述 </dt><dd></dd></dl>
<p>本例程演示如何使用ADC非循环模式下的多通道连续转换功能。</p>
<p>本例程系统时钟工作在24Mhz。</p>
<p>串口1按照如下配置：</p><ul>
<li>波特率：115200</li>
<li>数据位：8</li>
</ul>
<p>ADC被配置为对5个通道进行采样（采样通道为ADC通道0 ~ 通道4，分别对应管脚PC6, PC3, PC4, PD2, PD3），<br />
每个通道会被连续采样10次，采样结果会被打印在串口1中。</p>
<dl class="section user"><dt>目录内容 </dt><dd></dd></dl>
<ul>
<li>ADC/ADC_MultiChannels/ADC_MultiChannels.uvprojx MDK5工程文件</li>
<li>ADC/ADC_MultiChannels/ADC_MultiChannels.uvoptx MDK5工程配置文件</li>
<li>ADC/ADC_MultiChannels/JLinkSettings.ini Jlink配置文件</li>
<li>ADC/ADC_MultiChannels/main.c 主程序</li>
</ul>
<dl class="section user"><dt>硬件和软件环境 </dt><dd></dd></dl>
<ul>
<li>硬件平台搭建<ul>
<li>芯片管脚按如下连接：<ul>
<li>UART1 (PD5, PD6) 连接到串口</li>
</ul>
</li>
</ul>
</li>
</ul>
<dl class="section user"><dt>如何使用？ </dt><dd></dd></dl>
<p>为了使程序工作，您必须执行以下操作 :</p><ul>
<li>使用 MDK5 打开此例程文件夹中的 ADC_MultiChannels.uvprojx 工程</li>
<li>重新编译该工程并下载到目标存储器中</li>
<li><p class="startli">运行此例程</p>
<h3><center>&copy; COPYRIGHT 2023 Westberry Technology</center></h3>
</li>
</ul>
</div></div><!-- PageDoc -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
